package com.example.skymallseckillproductapi.service;

import com.situ.model.Order;
import com.situ.model.ProductCategory;
import com.situ.utils.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value="skymall-gateway",contextId = "OrderFeignService")
public interface OrderFeignService {

  //根据秒杀订单号查询秒杀订单
  @GetMapping("/order-api/api/v1/order/seckill/{seckillNo}")
  ResponseEntity<JsonResult<Order>> findBySeckillNo(@PathVariable String seckillNo);

}
